<?php /* Smarty version Smarty 3.1.4, created on 2012-05-06 13:47:38
         compiled from ".\templates\order\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:139784fa680fad3afc4-55263027%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '088f2d8d1d532ca174e67a42ce0ab0ccc8bab5b4' => 
    array (
      0 => '.\\templates\\order\\index.tpl',
      1 => 1334484556,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '139784fa680fad3afc4-55263027',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'item_arr_not_processed' => 0,
    'item_arr' => 0,
    'admintpl' => 0,
    'item_arr_delivered_notpaid' => 0,
    'item_arr_paid_notdelivered' => 0,
    'item_arr_completed' => 0,
    'item_arr_cancelled' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty 3.1.4',
  'unifunc' => 'content_4fa680fb2cad5',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fa680fb2cad5')) {function content_4fa680fb2cad5($_smarty_tpl) {?><div id="page-heading">
	<h1><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</h1><br>
       
      
</div>
<script>
    
	$(function() {
		$( "#tabs" ).tabs();
                //$("#tabs").tabs('load',current_index);
	});


 $(function() {
	$('.ordertable').dataTable({
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                "bPaginate": true,
		"bLengthChange": true,
		"bFilter": true,
		"bSort": true,
		"bInfo": true,
		"bAutoWidth": true,
                "bStateSave": true,
                "iCookieDuration":120,
                 "aaSorting": [[ 0, "desc" ]]

});
});
</script>
<div id="tabs">
	<ul>
		<li><a href="#tabs-1">Orders - Pending Delivery</a></li>
		<li><a href="#tabs-2">Orders- On Delivery</a></li>
                <li><a href="#tabs-3">Paid Orders - Pending Delivery</a></li>
                 <li><a href="#tabs-4">Orders-Delivery Confirmed </a></li>
                 <li><a href="#tabs-5"> Orders-Rejected</a></li>
	</ul>
	<div id="tabs-1">
<div align="center">
	<table border="0" width="100%" cellpadding="0" cellspacing="0" class="ordertable" id="ordertable">
            <thead>
		<tr>
			<th width="5%" align="center" class="table-header-repeat line-left">OrderID</th>
			<th width="20%" align="center" class="table-header-repeat line-left">Order Date</th>
			<th width="4%" class="table-header-repeat line-left">Name</th>
			<th width="9%" class="table-header-repeat line-left">Email</th>
			<th width="9%" class="table-header-repeat line-left">Is Paid</th>
			<th width="3%" class="table-header-repeat line-left">Is delivered</th>
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>			
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>			
                        <th width="2%" class="table-header-repeat line-left">&nbsp;</th>
		</tr>
               </thead>
               <tbody>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['item_arr_not_processed']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_date'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_firstname'];?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['item_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_lastname'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_email'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['ispaid'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['isdelivered'];?>
</td>
                        <td><a href="javascript: void(0);" onclick="loadPage('order/view/<?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
');"><img src="images/icons/settings.gif" width="20" height="20" /></a></td>
                        <td><a href="javascript: void(0);" onclick="openPrintWindow('<?php echo $_smarty_tpl->tpl_vars['admintpl']->value;?>
printinvoice.php?orderid=<?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
','printwin', 0, 0, 0, 650, 600);"><img src="images/icons/print.gif" width="20" height="20" /></a></td>
                         <td><a href="javascript: void(0);"  onclick="cancelorder(<?php echo $_smarty_tpl->tpl_vars['item_arr_not_processed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
);"><img alt="cancel" src="images/icons/disable.gif" width="20" height="20" /></a></td>
		</tr>
		<?php endfor; endif; ?>
                 </tbody>
	</table>
	
</div>
</div>
    <div id="tabs-2">

<div align="center">
	<table border="0" width="98%" cellpadding="0" cellspacing="0" class="ordertable" id="ordertable">
            <thead> 
		<tr>
			<th width="5%" align="center" class="table-header-repeat line-left">OrderID</th>
			<th width="20%" align="center" class="table-header-repeat line-left">Order Date</th>
			<th width="4%" class="table-header-repeat line-left">User Name</th>
			<th width="9%" class="table-header-repeat line-left">Email</th>
			<th width="9%" class="table-header-repeat line-left">Is Paid</th>
			<th width="3%" class="table-header-repeat line-left">Is delivered</th>
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>
                       
		</tr>
                </thead>
                <tbody>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_date'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_firstname'];?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_lastname'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_email'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['ispaid'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['isdelivered'];?>
</td>
                        <td><a href="javascript: void(0);" onclick="loadPage('order/view/<?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
');"><img src="images/icons/settings.gif" width="20" height="20" /></a></td>
                        <td><a href="javascript: void(0);" onclick="openPrintWindow('<?php echo $_smarty_tpl->tpl_vars['admintpl']->value;?>
printinvoice.php?orderid=<?php echo $_smarty_tpl->tpl_vars['item_arr_delivered_notpaid']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
','printwin', 0, 0, 0, 650, 600);"><img src="images/icons/print.gif" width="20" height="20" /></a></td>
                        
		</tr>
		<?php endfor; endif; ?>
                 </tbody>
	</table>

</div>
    

    </div>
    <div id="tabs-3">

        <div align="center">
	<table border="0" width="98%" cellpadding="0" cellspacing="0" class="ordertable" id="ordertable">
            <thead>
		<tr>
			<th width="5%" align="center" class="table-header-repeat line-left">OrderID</th>
			<th width="20%" align="center" class="table-header-repeat line-left">Order Date</th>
			<th width="4%" class="table-header-repeat line-left">User Name</th>
			<th width="9%" class="table-header-repeat line-left">Email</th>
			<th width="9%" class="table-header-repeat line-left">Is Paid</th>
			<th width="3%" class="table-header-repeat line-left">Is delivered</th>
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>
                   
		</tr>
                </thead>
                <tbody>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_date'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_firstname'];?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_lastname'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_email'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['ispaid'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['isdelivered'];?>
</td>
                        <td><a href="javascript: void(0);" onclick="loadPage('order/view/<?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
');"><img src="images/icons/settings.gif" width="20" height="20" /></a></td>
                        <td><a href="javascript: void(0);" onclick="openPrintWindow('<?php echo $_smarty_tpl->tpl_vars['admintpl']->value;?>
printinvoice.php?orderid=<?php echo $_smarty_tpl->tpl_vars['item_arr_paid_notdelivered']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
','printwin', 0, 0, 0, 650, 600);"><img src="images/icons/print.gif" width="20" height="20" /></a></td>
                        
		</tr>
		<?php endfor; endif; ?>
                </tbody>
	</table>

</div>


    

    </div>
    <div id="tabs-4">
    <div align="center">
	<table border="0" width="98%" cellpadding="0" cellspacing="0" class="ordertable" id="ordertable">
            <thead>
		<tr>
			<th width="5%" align="center" class="table-header-repeat line-left">OrderID</th>
			<th width="20%" align="center" class="table-header-repeat line-left">Order Date</th>
			<th width="4%" class="table-header-repeat line-left">User Name</th>
			<th width="9%" class="table-header-repeat line-left">Email</th>
			<th width="9%" class="table-header-repeat line-left">Is Paid</th>
			<th width="3%" class="table-header-repeat line-left">Is delivered</th>
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>
			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>

		</tr>
              </thead>
              <tbody>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['item_arr_completed']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_date'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_firstname'];?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_lastname'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_email'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['ispaid'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['isdelivered'];?>
</td>
                        <td><a href="javascript: void(0);" onclick="loadPage('order/view/<?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
');"><img src="images/icons/settings.gif" width="20" height="20" /></a></td>
                        <td><a href="javascript: void(0);" onclick="openPrintWindow('<?php echo $_smarty_tpl->tpl_vars['admintpl']->value;?>
printinvoice.php?orderid=<?php echo $_smarty_tpl->tpl_vars['item_arr_completed']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
','printwin', 0, 0, 0, 650, 600);"><img src="images/icons/print.gif" width="20" height="20" /></a></td>
                         
		</tr>
		<?php endfor; endif; ?>
                 </tbody>
	</table>

</div>

  

    </div>
    <div id="tabs-5">

        <div align="center">
	<table border="0" width="98%" cellpadding="0" cellspacing="0" class="ordertable" >
            <thead>
		<tr>
			<th width="5%" align="center" class="table-header-repeat line-left">OrderID</th>
			<th width="20%" align="center" class="table-header-repeat line-left">Order Date</th>
			<th width="4%" class="table-header-repeat line-left">User Name</th>
			<th width="9%" class="table-header-repeat line-left">Email</th>

			<th width="2%" class="table-header-repeat line-left">&nbsp;</th>

		</tr>
                </thead>
                <tbody>

		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['item_arr_cancelled']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_cancelled']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_cancelled']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_date'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_cancelled']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_firstname'];?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['item_arr_cancelled']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_lastname'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['item_arr_cancelled']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_email'];?>
</td>
 
                       
                        <td><a href="javascript: void(0);" onclick="openPrintWindow('<?php echo $_smarty_tpl->tpl_vars['admintpl']->value;?>
printinvoice.php?orderid=<?php echo $_smarty_tpl->tpl_vars['item_arr_cancelled']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['order_id'];?>
','printwin', 0, 0, 0, 650, 600);"><img src="images/icons/print.gif" width="20" height="20" /></a></td>

		</tr>
		<?php endfor; endif; ?>
                </tbody>
	</table>

</div>


</div>
</div><?php }} ?>